/*banner数据*/
function getBannerData() {
    var arr = ['../../images/banner_01.png', '../../images/banner_02.png', '../../images/banner_03.png', '../../images/banner_04.png']
    return arr
}
/*首页 navnav 数据*/
function getIndexNavData() {
    var arr = [{
            id: 1,
            icon: "../../images/nav_icon_01.png",
            title: "推荐"
        },
        {
            id: 2,
            icon: "../../images/nav_icon_02.png",
            title: "美甲"
        },
        {
            id: 3,
            icon: "../../images/nav_icon_03.png",
            title: "美容"
        },
        {
            id: 4,
            icon: "../../images/nav_icon_04.png",
            title: "美发"
        },
        {
            id: 5,
            icon: "../../images/nav_icon_05.png",
            title: "美睫"
        }
    ]
    return arr
}
/*首页 对应 标签 数据项*/
function getIndexNavSectionData() {
    var arr = [
        [{
                subject: "秋季自然特价美甲",
                coverpath: "../../images/recommend_img_01.png",
                price: '¥198',
                message: '我们追求的是没有最长只有更长！'
            },
            {
                subject: "睫毛稀疏 种睫毛来帮忙",
                coverpath: "../../images/recommend_img_02.png",
                price: '¥1888',
                message: '我们追求的是没有最长只有更长！'
            },
            {
                subject: "爱丽克EircParisSalon",
                coverpath: "../../images/recommend_img_03.png",
                price: '¥1588',
                message: '我们追求的是没有最长只有更长！'
            },
            {
                subject: "伊本造型",
                coverpath: "../../images/recommend_img_05.png",
                price: '¥198',
                message: '伊本造型是由著名形象设计师杨进先生创办。'
            },
            {
                subject: " 画对了妆，微微一笑颜值倍儿高！",
                coverpath: "../../images/recommend_img_06.png",
                price: '¥198',
                message: '《微微一笑很倾城》的剧照简直美腻到不要不要的'
            }
        ],
        [{
            artype: 'nails',
            subject: "秋季自然特价美甲",
            coverpath: "../../images/recommend_img_01.png",
            price: '¥198',
            message: '我们追求的是没有最长只有更长！'
        }],
        [{
                artype: 'beauty',
                subject: "爱丽克EircParisSalon",
                coverpath: "../../images/recommend_img_03.png",
                price: '¥1588',
                message: '我们追求的是没有最长只有更长！'
            },
            {
                artype: 'beauty',
                subject: " 画对了妆，微微一笑颜值倍儿高！",
                coverpath: "../../images/recommend_img_06.png",
                price: '¥198',
                message: '《微微一笑很倾城》的剧照简直美腻到不要不要的'
            }
        ],
        [

            {
                artype: 'hair',
                subject: "伊本造型",
                coverpath: "../../images/recommend_img_05.png",
                price: '¥1588',
                message: '伊本造型是由著名形象设计师杨进先生创办。'
            }
        ],
        [{
            artype: 'eyelash',
            subject: "睫毛稀疏 种睫毛来帮忙",
            coverpath: "../../images/recommend_img_02.png",
            price: '¥1888',
            message: '我们追求的是没有最长只有更长！'
        }]
    ]
    return arr
}
/*技师 数据*/
function getSkilledData() {
    var arr = [{
            company: "西狮独品美容美发有限公司",
            avatar: "../../images/skilledt_img_01.png",
            nickname: '张技师',
            price: '¥500',
            message: '从事美发行业60余年，有丰富经验',
            distance: '100m'
        },
        {
            company: "圆月亮美甲沙龙",
            avatar: "../../images/skilledt_img_02.png",
            nickname: '包技师',
            price: '¥800',
            message: '从事美发行业60余年，有丰富经验',
            distance: '200m'
        },
        {
            company: "璀璨美睫会所",
            avatar: "../../images/skilledt_img_03.png",
            nickname: '王技师',
            price: '¥600',
            message: '从事美发行业60余年，有丰富经验',
            distance: '100m'
        },
        {
            company: "柔丝妮美容养生馆",
            avatar: "../../images/skilledt_img_04.png",
            nickname: '黄技师',
            price: '¥800',
            message: '从事美发行业60余年，有丰富经验',
            distance: '400m'
        }
    ]
    return arr
}

/*选择器 数据*/
function getPickerData() {
    var arr = [{
            name: '张三',
            phone: '13812314563',
            province: '北京',
            city: '北京',
            addr: '朝阳区望京悠乐汇A座8011'
        },
        {
            name: '李四',
            phone: '13812314563',
            province: '北京市',
            city: '北京市',
            addr: '朝阳区望京悠乐汇A座4020'
        }
    ]
    return arr
}
/*查询 地址*/
var user_data = userData()

function searchAddrFromAddrs(addrid) {
    var result
    for (let i = 0; i < user_data.addrs.length; i++) {
        var addr = user_data.addrs[i]
        console.log(addr)
        if (addr.addrid == addrid) {
            result = addr
        }
    }
    return result || {}
}
/*用户数据*/
function userData() {
    var arr = {
        uid: '1',
        nickname: '山炮',
        name: '张三',
        phone: '13833337998',
        avatar: '../../images/avatar.png',
        addrs: [{
                addrid: '1',
                name: '张三',
                phone: '13812314563',
                province: '北京',
                city: '直辖市',
                addr: '朝阳区望京悠乐汇A座8011'
            },
            {
                addrid: '2',
                name: '李四',
                phone: '13812314563',
                province: '北京',
                city: '直辖市',
                addr: '朝阳区望京悠乐汇A座4020'
            }
        ]
    }
    return arr
}
/*省*/
function provinceData() {
    var arr = [
        // {pid:1,pzip:'110000',pname:'北京市'},
        // {pid:2,pzip:'120000',pname:'天津市'},
        '请选择省份', '福建省'
    ]
    return arr
}

// 服务详情
function goodboyData() {
    var arr = [{
            "name": "秋季自然特价美甲",
            "price": "价格:￥198"
        },
        {
            "value": "美甲是一种对指(趾)甲进行装饰美化的工作,又称美甲设计,美甲是根据客人的手形、甲形、肤质、服装的色彩和要求,对指(趾)甲进行消毒、清洁、护理、保养、修饰美化的过程。具有表现形式多样化的特点"
        }
    ]
    return arr
}
// 服务详情2
function goodgirlData() {
    var arr = [{
            "name": "详情描述"
        },
        {
            "first": "一、涂指甲油之前要上指甲底油",
            "second": "二、不涂面油会让美甲不堪一击",
            "third": "三、短甲小最好涂深色指甲油",
            "fourth": "四、美甲颜色要保持协调",
            "fifth": "五、不要小看修甲工具"
        }
    ]
    return arr
}
// 技师信息
function usefulData() {
    var arr = [{
        "name": "包技师",
        "value": "高级美容师就是指美容师中技术更好,获得了高级美容师资格证的美容师。美容师是一种专业美容领域的职业称谓。 "
    }]
    return arr
}

// 服务项目
 function serveprojectData(){
     var arr  =[
         {"project":"脸部清洁","price":"￥600","booking":"预约"},
         {"project":"保健按摩","price":"￥800","booking":"预约"},
         {"project":"药物香薰","price":"￥900","booking":"预约"},
     ]
         return arr
 }
/*市*/
function cityData() {
    var arr = [
        // {cid:1,czip:'110100',cname:'市辖区',pzip:'110000'},
        // {cid:2,czip:'120100',cname:'市辖区',pzip:'120000'}
        '请选择城市', '福州市', '厦门市', '宁德市'
    ]
    return arr
}
/*对外暴露接口*/
module.exports = {
    serveprojectData:serveprojectData,
    usefulData: usefulData,
    goodboyData: goodboyData,
    getBannerData: getBannerData,
    getIndexNavData: getIndexNavData,
    getIndexNavSectionData: getIndexNavSectionData,
    getPickerData: getPickerData,
    getSkilledData: getSkilledData,
    userData: userData,
    provinceData: provinceData,
    cityData: cityData,
    searchAddrFromAddrs: searchAddrFromAddrs,
    goodgirlData: goodgirlData
}